package com.heima.dorm_system;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<DormitoryRoom> list = new ArrayList<>();
        DormitoryBuilding d1 = new DormitoryBuilding("夕阳红", list);
        Student s1 = new Student("张三", "101001");
        Student s2 = new Student("李四", "101002");
        DormitoryRoom r1 = new DormitoryRoom("001", "主卧", "入住", s1);
        DormitoryRoom r2 = new DormitoryRoom("002", "次卧", "入住", s2);
        d1.add(r1);
        d1.add(r2);
        d1.displayRooms();
    }
}
